package com.sxm.yiwei.pinche;

import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.sxm.yiwei.R;
import com.sxm.yiwei.base.BaseActivity;

public class TicketDetailActivity extends BaseActivity implements View.OnClickListener {

    private RelativeLayout rl_back;
    private TextView tv_title;
    private TextView tv_style;
    private TextView tv_distance;
    private TextView tv_guarantee_fee;
    private TextView tv_transfer_fee;
    private TextView tv_start_time;
    private TextView tv_start_pos;
    private TextView tv_end_pos;
    private TextView tv_space;
    private TextView tv_phone;
    private TextView tv_words;
    private ImageView iv_car1;
    private ImageView iv_car2;
    private ImageView iv_car3;
    private ImageView iv_car4;
    private ImageView iv_icon;
    private TextView tv_nickname;
    private TextView tv_recent_come;
    private TextView tv_wei;
    private TextView tv_order_id;
    private TextView tv_order_time;
    private TextView tv_order_fee;
    private Button btn_cancel;
    private Button btn_pay;


    @Override
    public void setContentView() {
        setContentView(R.layout.activity_ticket_detail);
    }

    @Override
    public void initView() {
        rl_back = (RelativeLayout)findViewById(R.id.rl_back);
        tv_title = (TextView)findViewById(R.id.tv_title);
        tv_style = (TextView)findViewById(R.id.tv_style);
        tv_distance = (TextView)findViewById(R.id.tv_distance);
        tv_guarantee_fee = (TextView)findViewById(R.id.tv_guarantee_fee);
        tv_transfer_fee = (TextView)findViewById(R.id.text11);
        tv_start_time = (TextView)findViewById(R.id.tv_start_time);
        tv_start_pos = (TextView)findViewById(R.id.tv_start_pos);
        tv_end_pos = (TextView)findViewById(R.id.tv_end_pos);
        tv_space = (TextView)findViewById(R.id.text3);
        tv_phone = (TextView)findViewById(R.id.tv_phone);
        tv_words = (TextView)findViewById(R.id.tv_words);
        iv_car1 = (ImageView)findViewById(R.id.iv_car1);
        iv_car2 = (ImageView)findViewById(R.id.iv_car2);
        iv_car3 = (ImageView)findViewById(R.id.iv_car3);
        iv_car4 = (ImageView)findViewById(R.id.iv_car4);
        iv_icon = (ImageView)findViewById(R.id.iv_icon);
        tv_nickname = (TextView)findViewById(R.id.tv_nickname);
        tv_recent_come = (TextView)findViewById(R.id.tv_recent_come);
        tv_wei = (TextView)findViewById(R.id.tv_wei);
        tv_order_id = (TextView)findViewById(R.id.tv_order_id);
        tv_order_time = (TextView)findViewById(R.id.tv_appeal_time);
        tv_order_fee = (TextView)findViewById(R.id.tv_order_fee);
        btn_cancel = (Button)findViewById(R.id.btn_phone);
        btn_pay = (Button)findViewById(R.id.btn_pay);


    }

    @Override
    public void initListener() {
        rl_back.setOnClickListener(this);
        tv_wei.setOnClickListener(this);
        btn_cancel.setOnClickListener(this);
        btn_pay.setOnClickListener(this);
    }

    @Override
    public void initData() {
        tv_title.setText("车票详情");
    }

    @Override
    public void onClick(View view) {
        super.onClick(view);
        switch (view.getId()){
            case R.id.tv_wei:
                break;
            case R.id.btn_phone:
                break;
            case R.id.btn_pay:
                break;
        }
    }

}
